[CMake] Undefined symbols for architecture
Bonjour ,
j'ai un petit souci avec cmake je m'explique :
je suis sous mac et novice sur cmake
j'ai générer un makefile via eclipse pour mon projet tout fonctionne correctement .
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm
# All of the sources participating in the build are defined here
-include sources.mk
-include src/server/Shared/SignalHandler/subdir.mk
-include src/server/Shared/PostgreSQLInterface/subdir.mk
-include src/server/Shared/Logging/subdir.mk
-include src/server/Shared/Databases/subdir.mk
-include src/server/Shared/Config/subdir.mk
-include src/server/Auth/Authentification/subdir.mk
-include src/server/Auth/subdir.mk
-include Dep/Raknet/subdir.mk
-include subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
endif
-include ../makefile.defs
# Add inputs and outputs from these tool invocations to the build variables
# All Target
all: xsilium
# Tool invocations
xsilium: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: MacOS X C++ Linker'
g++ -pthread -lpq -o "xsilium" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(C++_DEPS)$(OBJS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(EXECUTABLES)$(CXX_DEPS)$(C_UPPER_DEPS) xsilium
-@echo ' '
.PHONY: all clean dependents
.SECONDARY:
-include ../makefile.targets |
Mais le problème c'est que je ne suis pas tout seul a développer donc j'ai commence a configurer cmake et j'ai une erreur
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Undefined symbols for architecture x86_64:
"Authentification::Authentification(RakNet::RakPeerInterface*)", referenced from:
SocketThread(void*) in AuthServer.cpp.o
"Authentification::CreateClient(RakNet::Packet*)", referenced from:
SocketThread(void*) in AuthServer.cpp.o
"Authentification::DeleteClient(RakNet::Packet*)", referenced from:
SocketThread(void*) in AuthServer.cpp.o
"Authentification::_HandleLogonChallenge(RakNet::Packet*)", referenced from:
SocketThread(void*) in AuthServer.cpp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [src/server/Auth/authserver] Error 1
make[1]: *** [src/server/Auth/CMakeFiles/authserver.dir/all] Error 2
make: *** [all] Error 2 |
Voici mon arborescence :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
|
-rw-r--r-- 1 joda staff 1087 11 mai 11:23 CMakeLists.txt
-rw-r--r--@ 1 joda staff 894 10 mai 23:28 cmake_uninstall.cmake.in
Dep:
total 24
drwxr-xr-x 5 joda staff 170 10 mai 23:14 .
drwxr-xr-x 18 joda staff 612 11 mai 12:00 ..
-rw-r--r--@ 1 joda staff 6148 26 fév 12:23 .DS_Store
-rw-r--r-- 1 joda staff 171 11 mai 10:48 CMakeLists.txt
drwxr-xr-x@ 248 joda staff 8432 10 fév 21:30 Raknet
Help:
total 11688
drwxr-xr-x 176 joda staff 5984 30 jan 22:45 .
drwxr-xr-x 18 joda staff 612 11 mai 12:00 ..
-rwxr--r-- 1 joda staff 98178 30 jan 22:45 0SleepTimer.jpg
-rwxr--r-- 1 joda staff 26528 30 jan 22:45 0SleepTimerSmall.jpg
-rwxr--r-- 1 joda staff 100540 30 jan 22:45 30SleepTimer.jpg
-rwxr--r-- 1 joda staff 26425 30 jan 22:45 30SleepTimerSmall.jpg
-rwxr--r-- 1 joda staff 3219 30 jan 22:45 AutopatcherVideo.htm
-rwxr--r-- 1 joda staff 60528 30 jan 22:45 CSharpBuildConfiguration.jpg
-rwxr--r-- 1 joda staff 44207 30 jan 22:45 DirectoryServerListing.jpg
drwxr-xr-x 4 joda staff 136 30 jan 22:45 Doxygen
-rwxr--r-- 1 joda staff 202895 30 jan 22:45 IrrlichtRakNetDemo.jpg
-rwxr--r-- 1 joda staff 85847 30 jan 22:45 PathVariableShot.jpg
-rwxr--r-- 1 joda staff 3186 30 jan 22:45 RPC3Video.htm
-rwxr--r-- 1 joda staff 9071 30 jan 22:45 RakNetLogo.jpg
-rwxr--r-- 1 joda staff 3337 30 jan 22:45 RakNetMajorFeatures.htm
-rwxr--r-- 1 joda staff 3266 30 jan 22:45 RakNetMajorFeatures.html
-rwxr--r-- 1 joda staff 226057 30 jan 22:45 RakNetUML.jpg
-rwxr--r-- 1 joda staff 42702 30 jan 22:45 RakNet_Icon_Final-copy.jpg
-rwxr--r-- 1 joda staff 1040 30 jan 22:45 RaknetManual.css
-rwxr--r-- 1 joda staff 3343 30 jan 22:45 ReplicaManager3Video.htm
-rwxr--r-- 1 joda staff 3336 30 jan 22:45 SQLite3LoggerPluginVideo.html
-rwxr--r-- 1 joda staff 48004 30 jan 22:45 addchatserverfile.jpg
-rwxr--r-- 1 joda staff 5674 30 jan 22:45 addchatserverfilesmall.jpg
-rwxr--r-- 1 joda staff 11877 30 jan 22:45 autopatcher.html
-rwxr--r-- 1 joda staff 8250 30 jan 22:45 bitstreams.html
-rwxr--r-- 1 joda staff 9090 30 jan 22:45 bluetooth.html
-rwxr--r-- 1 joda staff 22201 30 jan 22:45 clientserver.jpg
-rwxr--r-- 1 joda staff 9452 30 jan 22:45 cloudcomputing.html
-rwxr--r-- 1 joda staff 5085 30 jan 22:45 cloudhosting.html
-rwxr--r-- 1 joda staff 156296 30 jan 22:45 cloudhosting1.jpg
-rwxr--r-- 1 joda staff 162721 30 jan 22:45 cloudhosting2.jpg
-rwxr--r-- 1 joda staff 137098 30 jan 22:45 cloudhosting3.jpg
-rwxr--r-- 1 joda staff 96185 30 jan 22:45 cloudhosting4.jpg
-rwxr--r-- 1 joda staff 202037 30 jan 22:45 cloudhosting5.jpg
-rwxr--r-- 1 joda staff 133780 30 jan 22:45 cloudhosting6.jpg
-rwxr--r-- 1 joda staff 127287 30 jan 22:45 cloudhosting7.jpg
-rwxr--r-- 1 joda staff 7097 30 jan 22:45 compilersetup.html
-rwxr--r-- 1 joda staff 7976 30 jan 22:45 compilersetup_xcode.html
-rwxr--r-- 1 joda staff 15564 30 jan 22:45 completeproject.jpg
-rwxr--r-- 1 joda staff 20643 30 jan 22:45 congestioncontrol.html
-rwxr--r-- 1 joda staff 15562 30 jan 22:45 connecting.html
-rwxr--r-- 1 joda staff 0 30 jan 22:45 connectionFilter.html
-rwxr--r-- 1 joda staff 2348 30 jan 22:45 connectiongraph.html
-rwxr--r-- 1 joda staff 13237 30 jan 22:45 consoleapplication.jpg
-rwxr--r-- 1 joda staff 9688 30 jan 22:45 consoleserver.html
-rwxr--r-- 1 joda staff 4444 30 jan 22:45 crashreporter.html
-rwxr--r-- 1 joda staff 17090 30 jan 22:45 creatingpackets.html
-rwxr--r-- 1 joda staff 2459 30 jan 22:45 csharpunity.html
-rwxr--r-- 1 joda staff 2325 30 jan 22:45 custommemorymanagement.html
-rwxr--r-- 1 joda staff 5232 30 jan 22:45 datacompression.html
-rwxr--r-- 1 joda staff 1677 30 jan 22:45 datareplicationvideo.html
-rwxr--r-- 1 joda staff 11879 30 jan 22:45 debuggingdisconnects.html
-rwxr--r-- 1 joda staff 6502 30 jan 22:45 dependencies.html
-rwxr--r-- 1 joda staff 19121 30 jan 22:45 detailedimplementation.html
-rwxr--r-- 1 joda staff 3114 30 jan 22:45 directorydeltatransfer.html
-rwxr--r-- 1 joda staff 20398 30 jan 22:45 distributednetworkobject.html
-rwxr--r-- 1 joda staff 2159 30 jan 22:45 emailsender.html
-rwxr--r-- 1 joda staff 15052 30 jan 22:45 faq.html
-rwxr--r-- 1 joda staff 5483 30 jan 22:45 filelisttransfer.html
-rwxr--r-- 1 joda staff 2533 30 jan 22:45 fullyconnectedmesh.html
-rwxr--r-- 1 joda staff 6136 30 jan 22:45 fullyconnectedmesh2.html
-rwxr--r-- 1 joda staff 3260 30 jan 22:45 helloworldvideo.html
-rwxr--r-- 1 joda staff 18089 30 jan 22:45 index.html
-rwxr--r-- 1 joda staff 8611 30 jan 22:45 introduction.html
-rwxr--r-- 1 joda staff 2805 30 jan 22:45 iocompletionports.html
-rwxr--r-- 1 joda staff 4016 30 jan 22:45 ipv6support.html
-rwxr--r-- 1 joda staff 2934 30 jan 22:45 irrlichtfpsdemo.html
-rwxr--r-- 1 joda staff 3831 30 jan 22:45 lightweightdatabase.html
-rwxr--r-- 1 joda staff 9354 30 jan 22:45 lobby.html
-rwxr--r-- 1 joda staff 36126 30 jan 22:45 makedll.jpg
-rwxr--r-- 1 joda staff 13096 30 jan 22:45 makedllsmall.jpg
-rwxr--r-- 1 joda staff 3451 30 jan 22:45 marmalade.html
-rwxr--r-- 1 joda staff 2826 30 jan 22:45 masterserver.html
-rwxr--r-- 1 joda staff 7360 30 jan 22:45 memorysynchronizer.html
-rwxr--r-- 1 joda staff 3751 30 jan 22:45 messagefilter.html
-rwxr--r-- 1 joda staff 2970 30 jan 22:45 messagehandler.html
-rwxr--r-- 1 joda staff 21540 30 jan 22:45 multiplayergamecomponents.html
-rwxr--r-- 1 joda staff 57646 30 jan 22:45 multithreadeddebug.jpg
-rwxr--r-- 1 joda staff 21594 30 jan 22:45 multithreadeddebugsmall.jpg
-rwxr--r-- 1 joda staff 199 30 jan 22:45 natpunchpanel1.html
-rwxr--r-- 1 joda staff 90110 30 jan 22:45 natpunchpanel1.jpg
-rwxr--r-- 1 joda staff 29280 30 jan 22:45 natpunchpanel1small.jpg
-rwxr--r-- 1 joda staff 199 30 jan 22:45 natpunchpanel2.html
-rwxr--r-- 1 joda staff 87928 30 jan 22:45 natpunchpanel2.jpg
-rwxr--r-- 1 joda staff 30426 30 jan 22:45 natpunchpanel2small.jpg
-rwxr--r-- 1 joda staff 199 30 jan 22:45 natpunchpanel3.html
-rwxr--r-- 1 joda staff 97031 30 jan 22:45 natpunchpanel3.jpg
-rwxr--r-- 1 joda staff 32076 30 jan 22:45 natpunchpanel3small.jpg
-rwxr--r-- 1 joda staff 199 30 jan 22:45 natpunchpanel4.html
-rwxr--r-- 1 joda staff 83499 30 jan 22:45 natpunchpanel4.jpg
-rwxr--r-- 1 joda staff 28923 30 jan 22:45 natpunchpanel4small.jpg
-rwxr--r-- 1 joda staff 199 30 jan 22:45 natpunchpanel5.html
-rwxr--r-- 1 joda staff 105364 30 jan 22:45 natpunchpanel5.jpg
-rwxr--r-- 1 joda staff 33051 30 jan 22:45 natpunchpanel5small.jpg
-rwxr--r-- 1 joda staff 199 30 jan 22:45 natpunchpanel6.html
-rwxr--r-- 1 joda staff 104826 30 jan 22:45 natpunchpanel6.jpg
-rwxr--r-- 1 joda staff 33326 30 jan 22:45 natpunchpanel6small.jpg
-rwxr--r-- 1 joda staff 200 30 jan 22:45 natpunchpanel7.html
-rwxr--r-- 1 joda staff 95199 30 jan 22:45 natpunchpanel7.jpg
-rwxr--r-- 1 joda staff 31866 30 jan 22:45 natpunchpanel7small.jpg
-rwxr--r-- 1 joda staff 17374 30 jan 22:45 natpunchthrough.html
-rwxr--r-- 1 joda staff 11425 30 jan 22:45 nattraversalarchitecture.html
-rwxr--r-- 1 joda staff 8563 30 jan 22:45 nattypedetection.html
-rwxr--r-- 1 joda staff 6923 30 jan 22:45 networkidobject.html
-rwxr--r-- 1 joda staff 22074 30 jan 22:45 networkmessages.html
-rwxr--r-- 1 joda staff 2795 30 jan 22:45 networksimulator.html
-rwxr--r-- 1 joda staff 46958 30 jan 22:45 newproject.jpg
-rwxr--r-- 1 joda staff 8027 30 jan 22:45 newprojectsmall.jpg
-rwxr--r-- 1 joda staff 3269 30 jan 22:45 ogre3dinterpdemo.html
-rwxr--r-- 1 joda staff 2358 30 jan 22:45 packetlogger.html
-rwxr--r-- 1 joda staff 7274 30 jan 22:45 phpdirectoryserver.html
-rwxr--r-- 1 joda staff 2871 30 jan 22:45 playerids.html
-rwxr--r-- 1 joda staff 3256 30 jan 22:45 plugininterface.html
-rwxr--r-- 1 joda staff 5823 30 jan 22:45 preprocessordirectives.html
-rwxr--r-- 1 joda staff 54102 30 jan 22:45 preprocessordirectives.jpg
-rwxr--r-- 1 joda staff 17372 30 jan 22:45 preprocessordirectivessmall.jpg
-rwxr--r-- 1 joda staff 11233 30 jan 22:45 programmingtips.html
-rwxr--r-- 1 joda staff 8948 30 jan 22:45 rackspaceinterface.html
-rwxr--r-- 1 joda staff 5308 30 jan 22:45 rakvoice.html
-rwxr--r-- 1 joda staff 2835 30 jan 22:45 readyevent.html
-rwxr--r-- 1 joda staff 4897 30 jan 22:45 receivingpackets.html
-rwxr--r-- 1 joda staff 11963 30 jan 22:45 reliabilitytypes.html
-rwxr--r-- 1 joda staff 23321 30 jan 22:45 replicamanager3.html
-rwxr--r-- 1 joda staff 74330 30 jan 22:45 revisionlog.html
-rwxr--r-- 1 joda staff 3476 30 jan 22:45 router.html
-rwxr--r-- 1 joda staff 3714 30 jan 22:45 rpc4.html
-rwxr--r-- 1 joda staff 11255 30 jan 22:45 samples.html
-rwxr--r-- 1 joda staff 6526 30 jan 22:45 secureconnections.html
-rwxr--r-- 1 joda staff 9107 30 jan 22:45 sendingpackets.html
-rwxr--r-- 1 joda staff 61 30 jan 22:45 spacer.gif
-rwxr--r-- 1 joda staff 12236 30 jan 22:45 sqlite3loggerplugin.html
-rwxr--r-- 1 joda staff 5550 30 jan 22:45 sqlite3plugin.html
-rwxr--r-- 1 joda staff 5773 30 jan 22:45 startup.html
-rwxr--r-- 1 joda staff 5760 30 jan 22:45 statistics.html
-rwxr--r-- 1 joda staff 2935 30 jan 22:45 steamlobby.html
-rwxr--r-- 1 joda staff 4514 30 jan 22:45 stringcompressor.html
-rwxr--r-- 1 joda staff 6880 30 jan 22:45 swfobject.js
-rwxr--r-- 1 joda staff 30432 30 jan 22:45 swigtutorial.html
-rwxr--r-- 1 joda staff 16059 30 jan 22:45 swigtutorialadditional.html
-rwxr--r-- 1 joda staff 3928 30 jan 22:45 systemaddresses.html
-rwxr--r-- 1 joda staff 10835 30 jan 22:45 systemoverview.html
-rwxr--r-- 1 joda staff 3440 30 jan 22:45 tcpinterface.html
-rwxr--r-- 1 joda staff 3026 30 jan 22:45 teambalancer.html
-rwxr--r-- 1 joda staff 41676 30 jan 22:45 telnet1.jpg
-rwxr--r-- 1 joda staff 34079 30 jan 22:45 telnet2.jpg
-rwxr--r-- 1 joda staff 67322 30 jan 22:45 telnet3.jpg
-rwxr--r-- 1 joda staff 29057 30 jan 22:45 timestamp.jpg
-rwxr--r-- 1 joda staff 3374 30 jan 22:45 timestamping.html
-rwxr--r-- 1 joda staff 9453 30 jan 22:45 tutorial.html
-rwxr--r-- 1 joda staff 116325 30 jan 22:45 tutorial1.jpg
-rwxr--r-- 1 joda staff 70628 30 jan 22:45 tutorial2.jpg
-rwxr--r-- 1 joda staff 30567 30 jan 22:45 tutorial3.jpg
-rwxr--r-- 1 joda staff 23679 30 jan 22:45 tutorial4.jpg
-rwxr--r-- 1 joda staff 166753 30 jan 22:45 tutorial5.jpg
-rwxr--r-- 1 joda staff 156577 30 jan 22:45 tutorial6.jpg
-rwxr--r-- 1 joda staff 177212 30 jan 22:45 tutorial7.jpg
-rwxr--r-- 1 joda staff 1902 30 jan 22:45 tutorialsample1.html
-rwxr--r-- 1 joda staff 4358 30 jan 22:45 tutorialsample2.html
-rwxr--r-- 1 joda staff 5025 30 jan 22:45 tutorialsample3.html
-rwxr--r-- 1 joda staff 5163 30 jan 22:45 twowayauthentication.html
-rwxr--r-- 1 joda staff 47521 30 jan 22:45 useiocompletionports.jpg
-rwxr--r-- 1 joda staff 15677 30 jan 22:45 useiocompletionportssmall.jpg
-rwxr--r-- 1 joda staff 48191 30 jan 22:45 ws2_32include.jpg
-rwxr--r-- 1 joda staff 15027 30 jan 22:45 ws2_32includesmall.jpg
-rwxr--r-- 1 joda staff 112443 30 jan 22:45 xcode_addfiles.jpg
-rwxr--r-- 1 joda staff 14329 30 jan 22:45 xcode_addfiles_newgroup.jpg
-rwxr--r-- 1 joda staff 41727 30 jan 22:45 xcode_changesdk.jpg
-rwxr--r-- 1 joda staff 19003 30 jan 22:45 xcode_headersearchpaths.jpg
-rwxr--r-- 1 joda staff 77752 30 jan 22:45 xcode_library.jpg
-rwxr--r-- 1 joda staff 23605 30 jan 22:45 xcode_libraryname.jpg
-rwxr--r-- 1 joda staff 5898 30 jan 22:45 xcode_librarysmall.jpg
-rwxr--r-- 1 joda staff 57950 30 jan 22:45 xcode_linkwithlibrary.jpg
-rwxr--r-- 1 joda staff 81373 30 jan 22:45 xcode_newcommandlinetool.jpg
-rwxr--r-- 1 joda staff 45269 30 jan 22:45 xcode_newworkspace.jpg
-rwxr--r-- 1 joda staff 92148 30 jan 22:45 xcode_remove_cat.jpg
-rwxr--r-- 1 joda staff 82610 30 jan 22:45 xcode_sourcefolder.jpg
cmake:
total 24
drwxr-xr-x 7 joda staff 238 10 mai 23:26 .
drwxr-xr-x 18 joda staff 612 11 mai 12:00 ..
drwxr-xr-x 3 joda staff 102 10 mai 23:30 compiler
drwxr-xr-x 7 joda staff 238 11 mai 01:44 macros
-rw-r--r--@ 1 joda staff 479 10 mai 23:24 options.cmake
drwxr-xr-x 5 joda staff 170 10 mai 23:30 platform
-rw-r--r--@ 1 joda staff 374 10 mai 23:26 showoptions.cmake
sql:
total 0
drwxr-xr-x 3 joda staff 102 10 mai 23:44 .
drwxr-xr-x 18 joda staff 612 11 mai 12:00 ..
-rw-r--r-- 1 joda staff 0 10 mai 23:44 CMakeLists.txt
src:
total 24
drwxr-xr-x 5 joda staff 170 10 mai 22:59 .
drwxr-xr-x 18 joda staff 612 11 mai 12:00 ..
-rw-r--r--@ 1 joda staff 6148 18 fév 15:38 .DS_Store
-rw-r--r-- 1 joda staff 24 10 mai 23:00 CMakeLists.txt
drwxr-xr-x 7 joda staff 238 11 mai 01:21 server |
et voici mon CMakelists.txt
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
########### authserver ###############
file(GLOB_RECURSE sources_authentication Authentication/*.cpp Authentication/*.h)
file(GLOB_RECURSE sources_realms realms/*.cpp realms/*.h)
file(GLOB sources_localdir *.cpp *.h)
set(authserver_SRCS
${authserver_SRCS}
${sources_authentication}
${sources_realms}
${sources_localdir}
)
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src/server/Shared
${CMAKE_SOURCE_DIR}/src/server/Shared/Config
${CMAKE_SOURCE_DIR}/src/server/Shared/Databases
${CMAKE_SOURCE_DIR}/src/server/Shared/PostgreSQLInterface
${CMAKE_SOURCE_DIR}/src/server/Shared/SignalHandler
${CMAKE_SOURCE_DIR}/src/server/Shared/Singleton
${CMAKE_SOURCE_DIR}/src/server/Shared/Logging
${CMAKE_SOURCE_DIR}/src/server/Shared/Structure
${CMAKE_SOURCE_DIR}/Dep/Raknet
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/Authentication
${CMAKE_CURRENT_SOURCE_DIR}/realms
${PGSQL_INCLUDE_DIR}
${shared_STAT_SRCS}
${raknet_STAT_SRCS}
)
set(authserver_LINK_FLAGS "-pthread -lpq")
add_executable(authserver
${authserver_SRCS}
)
if( UNIX )
set(authserver_LINK_FLAGS "${authserver_LINK_FLAGS}")
endif()
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
set(authserver_LINK_FLAGS "-framework Carbon ${authserver_LINK_FLAGS} ")
endif()
set_target_properties(authserver PROPERTIES LINK_FLAGS "${authserver_LINK_FLAGS}" )
target_link_libraries(authserver shared raknet ${OSX_LIBS} ${PGSQL_LIBRARIES} )
install(TARGETS authserver DESTINATION bin)
install(FILES authserver.conf.dist DESTINATION etc) |
je ne voit pas où est erreur :cry:
Pouvez vous m'aider ?