forked from Alepha/Alepha
A lot of progress towards unifying the build system.
This commit is contained in:
@ -1,14 +1,29 @@
|
||||
cmake_minimum_required( VERSION 3.25 )
|
||||
project( Alepha )
|
||||
|
||||
add_compile_options( -I . ; -std=c++20 )
|
||||
include( cmake/rules.cmake )
|
||||
|
||||
set( VERBOSE 1 )
|
||||
set( CMAKE_VERBOSE_MAKEFILE true )
|
||||
|
||||
file( CREATE_LINK ${CMAKE_SOURCE_DIR} Alepha SYMBOLIC )
|
||||
|
||||
add_library( alepha SHARED Console.cpp ProgramOptions.cpp string_algorithms.cpp word_wrap.cpp )
|
||||
# The core alepha library:
|
||||
|
||||
add_library( alepha SHARED
|
||||
Console.cpp
|
||||
ProgramOptions.cpp
|
||||
string_algorithms.cpp
|
||||
word_wrap.cpp
|
||||
)
|
||||
# Everything else depends upon it
|
||||
link_libraries( alepha )
|
||||
|
||||
# The subdirs to build
|
||||
add_subdirectory( Meta )
|
||||
add_subdirectory( Reflection )
|
||||
|
||||
# The local subdir tests to build
|
||||
add_subdirectory( AutoRAII.test )
|
||||
add_subdirectory( comparisons.test )
|
||||
add_subdirectory( Exception.test )
|
||||
|
||||
# Sample applications
|
||||
add_executable( example example.cc )
|
||||
|
Reference in New Issue
Block a user