File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
#cmake_minimum_required(VERSION 3.22)
2
2
3
- # Debug message
4
- message ("Entering ${CMAKE_CURRENT_LIST_DIR} /CMakeLists.txt" )
3
+ # Register core library once and link it statically
4
+ add_library (lwrb STATIC
5
+ ${CMAKE_CURRENT_LIST_DIR} /src/lwrb/lwrb.c
6
+ )
5
7
6
- # Register core library
7
- add_library (lwrb INTERFACE )
8
- target_sources (lwrb INTERFACE ${CMAKE_CURRENT_LIST_DIR} /src/lwrb/lwrb.c )
9
- target_include_directories (lwrb INTERFACE ${CMAKE_CURRENT_LIST_DIR} /src/include )
8
+ target_include_directories (lwrb PUBLIC
9
+ ${CMAKE_CURRENT_LIST_DIR} /src/include
10
+ )
10
11
11
- # Register other modules
12
-
13
- # Debug message
14
- message ("Exiting ${CMAKE_CURRENT_LIST_DIR} /CMakeLists.txt" )
12
+ set_target_properties (lwrb PROPERTIES POSITION_INDEPENDENT_CODE ON )
You can’t perform that action at this time.
0 commit comments