Skip to content

Commit

Permalink
adapted CMakeLists.txt for reusing code with biicode; added configura…
Browse files Browse the repository at this point in the history
…tion file (biicode.conf)
  • Loading branch information
franramirez688 committed Jan 14, 2015
1 parent 14540d6 commit 0436482
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion CMakeLists.txt
@@ -1,3 +1,19 @@
IF(BIICODE)
INIT_BIICODE_BLOCK()
ADD_BIICODE_TARGETS()
IF(NOT WIN32)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_options(${BII_BLOCK_TARGET} INTERFACE -Wall -g -ggdb -O0 )
else()
target_compile_options(${BII_BLOCK_TARGET} INTERFACE -Wall -O2 -DNDEBUG )
endif()
ENDIF()
if(WIN32)
TARGET_LINK_LIBRARIES(${BII_BLOCK_TARGET} INTERFACE shlwapi)
else()
TARGET_LINK_LIBRARIES(${BII_BLOCK_TARGET} INTERFACE pthread)
endif()
ELSE()
cmake_minimum_required(VERSION 2.6)
project(log4z)

Expand Down Expand Up @@ -33,4 +49,4 @@ SET(LOG4Z_BIN_OUT_PATH ${log4z_SOURCE_DIR}/test/bin)

add_subdirectory(g++)
add_subdirectory(test)

ENDIF(BIICODE)

0 comments on commit 0436482

Please sign in to comment.