C++ only project.
This commit is contained in:
parent
7305496e9d
commit
2c5b104b82
@ -15,7 +15,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
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})
|
||||
|
Loading…
Reference in New Issue
Block a user