diff --git a/CMakeLists.txt b/CMakeLists.txt index c2d6084..b61697e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ # along with this program. If not, see . cmake_minimum_required(VERSION 2.8) -project(NeoComm) +project(NeoComm CXX) # Binary filename set(TARGET_NAME "neocomm") @@ -40,8 +40,6 @@ include_directories( # Define files set(SRCS - src/channel.cpp - src/message.cpp src/node.cpp) set(HDRS @@ -64,6 +62,12 @@ else() add_definitions(-DNDEBUG) endif() +if(WIN32) + add_definitions(-DWOE32) +elseif(UNIX) + add_definitions(-DUNIX) +endif() + # Create the executable if(${BUILD_SHARED_LIB}) add_library(${TARGET_NAME} SHARED ${SRCS})