mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Turn things in common into separate libs.
Took 2 hours 27 minutes
This commit is contained in:
parent
53d80efab8
commit
01378b8314
389 changed files with 336 additions and 233 deletions
27
libs/rng/CMakeLists.txt
Normal file
27
libs/rng/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
set(HEADERS
|
||||
include/rng/rng_abstract.h
|
||||
include/rng/rng_sfmt.h
|
||||
include/rng/sfmt/SFMT.h
|
||||
)
|
||||
|
||||
if (Qt6_FOUND)
|
||||
qt6_wrap_cpp(MOC_SOURCES ${HEADERS})
|
||||
elseif (Qt5_FOUND)
|
||||
qt5_wrap_cpp(MOC_SOURCES ${HEADERS})
|
||||
endif ()
|
||||
|
||||
add_library(cockatrice_rng STATIC
|
||||
src/rng_abstract.cpp
|
||||
src/rng_sfmt.cpp
|
||||
src/sfmt/SFMT.c
|
||||
${MOC_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(cockatrice_rng
|
||||
PUBLIC include
|
||||
PUBLIC include/sfmt
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue