stellar

Stellar - Chess engine written in C
Log | Files | Refs

CMakeLists.txt (625B)


      1 add_library(attacks OBJECT
      2     attacks.c
      3     internal.c
      4     magic.c
      5 )
      6 
      7 target_include_directories(attacks
      8     PUBLIC "${PROJECT_SOURCE_DIR}/src/include"
      9     PRIVATE "internal"
     10 )
     11 
     12 
     13 project(
     14     MagicGenerator
     15     VERSION 1.0.0
     16     DESCRIPTION "Generator of magic numbers for bishup and rook attacks"
     17     LANGUAGES C
     18 )
     19 
     20 
     21 add_executable(magic
     22     internal.c
     23     magic.c
     24     magic_generate.c
     25 )
     26 
     27 target_link_libraries(magic
     28     PRIVATE utils
     29     PRIVATE random
     30 )
     31 
     32 set_target_properties(magic PROPERTIES
     33     VERSION ${PROJECT_VERSION}
     34     SOVERSION ${PROJECT_VERSION_MAJOR}
     35     RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
     36 )